import useHistory react-router-dom version 6

108

import useHistory react-router-dom version 6 -

import {useNavigate} from 'react-router-dom';
const navigate = useNavigate();
navigate('/home')

Comments

Submit
0 Comments